import { HOME_URL } from '@/config/config.ts'
export const staticRouter = [
  {
    path: '/',
    redirect: HOME_URL,
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/pages/Login/Index.vue'),
  },
  {
    path: '/layout',
    name: 'layout',
    component: () => import('@/layouts/Index.vue'),
  },
]

export const errorRouter = [
  {
    path: '/404',
    name: '404',
    component: () => import('@/components/ErrorMessage/NotFound.vue'),
    meta: {
      title: '404页面',
    },
  },
  {
    path: '/:pathMatch(.*)*',
    component: () => import('@/components/ErrorMessage/NotFound.vue'),
  },
]
